main(long n){gets(&n);printf("%ld\n",20-n%85%38);}
